package org.mparts.server.domain;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the model database table.
 * 
 */
@Entity
public class Model extends EntityBase implements Serializable {
	private static final long serialVersionUID = 1L;
	private String name;
//	@ManyToOne
    @ManyToOne(targetEntity = Auto.class, fetch = FetchType.EAGER)
    @JoinColumn(name = "auto_id", referencedColumnName = "id")
	private Auto auto;

	public Model() {
	}


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}


	//bi-directional many-to-one association to Auto
//	@ManyToOne
	public Auto getAuto() {
		return this.auto;
	}

	public void setAuto(Auto auto) {
		this.auto = auto;
	}

}